home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: Something to play with.
- Date: 15 Feb 1996 04:22:05 +1300
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4fsumt$ej5@airdmhor.gen.nz>
- References: <4eist1$9fk@airdmhor.gen.nz> <31120ED7.5266@ntostud.mh.se> <7kka1yf747.fsf@nissart.lagaude.ibm.com>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- Simon Hosie wrote:
- > If anyone gets any kind of warning or error comiling this or anything it
- > generates, please let me know.
- Guillaume Laurent:
- > I didn't get any on AIX 3.2.5 cc.
-
- A lot of other people had problems with 'void main' which is how I found
- out that you don't do that, somebody said it was illegal in ANSI, and
- somebody else said it wasn't illegal but some compilers didn't like it. All
- I know for certain now it that you justr don't do it; but I'd like to see
- what ANSI has to say about it (don't know if it's in the FAQ, I haven't read
- that far yet).
-
-
- In article <31120ED7.5266@ntostud.mh.se> Roger Martensson <ping9535@ntostud.mh.se> writes:
- > It compiled quite nice, but it would be nice to know what this
- > program does? (Didn't dare to run the program)
-
- Guillaume Laurent:
- > Well, if I understand correctly (Mr Hosie will correct me if I'm
- > wrong), it's a kind of compressor, like gzip, called gbcode. What is
- > special with it is that it can generate C code from a given file. What
- > for ? you ask. Well, once this very awkward C code is compiled,
- > running the resulting executable will generate the file you initally
- > compressed.
-
- Mostly, though it doesn't compress, it expands into printable characters
- (and characters usable between quotes in C and [in my latest fix] Pascal),
- you compress it yourself.
-
-
- Guillaume Laurent:
- > Quite elegant, really. Have you ever consider participating the
- > Obfuscated C Code contest ?
-
- I doubt it'd win, it's only compressed, not really obfuscated. Perhaps if
- I interpreted the binary data it generated and used that as the body of the
- code then it'd have a chance. Interpreters are probably against the rules,
- though (if they're not but it's later decided they should be then I want dibs
- on the 'Hacker Test' point).
-